/*
 * Starting.java
 *
 * Created on 05/04/2010, 18:49:28
 */
package br.unb.graphics.start;

/**
 *
 * @author USUARIO
 */
import javax.swing.JScrollPane;

import br.unb.graphics.GraphicInterface;

public class Starting extends javax.swing.JPanel {

    public Start start;
    //private JScrollPane scrollpanel;

    /** Creates new form Starting */
    public Starting() {
        initComponents();
        start = new Start();
        //scrollpanel = new JScrollPane(this);
    }

    //public JScrollPane getPanel() {
    //    return scrollpanel;
    //}

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        welcome_label = new javax.swing.JLabel();
        whatlabel = new javax.swing.JLabel();
        generatebutton = new javax.swing.JButton();
        analysebutton = new javax.swing.JButton();

        welcome_label.setText("Welcome to GTAR");

        whatlabel.setText("What do you want to do?");

        generatebutton.setText("generate traffic");
        generatebutton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                generatebuttonActionPerformed(evt);
            }
        });

        analysebutton.setText("analyse traffic");
        analysebutton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                analysebuttonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(143, Short.MAX_VALUE)
                .addComponent(whatlabel)
                .addGap(135, 135, 135))
            .addGroup(layout.createSequentialGroup()
                .addGap(53, 53, 53)
                .addComponent(generatebutton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                .addComponent(analysebutton)
                .addGap(53, 53, 53))
            .addGroup(layout.createSequentialGroup()
                .addGap(152, 152, 152)
                .addComponent(welcome_label)
                .addContainerGap(162, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(welcome_label)
                .addGap(58, 58, 58)
                .addComponent(whatlabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(generatebutton)
                    .addComponent(analysebutton))
                .addGap(82, 82, 82))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void generatebuttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_generatebuttonActionPerformed

        GraphicInterface.getInstance().showStart();

    }//GEN-LAST:event_generatebuttonActionPerformed

    private void analysebuttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_analysebuttonActionPerformed

        GraphicInterface.getInstance().showStart();

    }//GEN-LAST:event_analysebuttonActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton analysebutton;
    private javax.swing.JButton generatebutton;
    private javax.swing.JLabel welcome_label;
    private javax.swing.JLabel whatlabel;
    // End of variables declaration//GEN-END:variables
}
